﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet3" targetNamespace="http://tempuri.org/DataSet3.xsd" xmlns:mstns="http://tempuri.org/DataSet3.xsd" xmlns="http://tempuri.org/DataSet3.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="MySettings" AppSettingsPropertyName="TravConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="TravConnectionString (MySettings)" PropertyReference="ApplicationSettings.AdminPanel.My.MySettings.GlobalReference.Default.TravConnectionString" Provider="System.Data.OleDb" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="unitsTableAdapter" GeneratorDataComponentClassName="unitsTableAdapter" Name="units" UserDataComponentName="unitsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="TravConnectionString (MySettings)" DbObjectName="Travian.dbo.units" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [Travian].[dbo].[units] WHERE (([Unit_id] = ?) AND ([Unit_Name] = ?) AND ([Unit_Race] = ?) AND ([Unit_Speed] = ?) AND ([Loot] = ?) AND ([Funct] = ?) AND ([Type] = ?))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Unit_id" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Unit_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Original_Unit_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Unit_Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Original_Unit_Race" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Unit_Race" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Unit_Speed" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Unit_Speed" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Loot" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Loot" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="Original_Funct" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Funct" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="Original_Type" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [Travian].[dbo].[units] ([Unit_Name], [Unit_Race], [Unit_Speed], [Loot], [Funct], [Type]) VALUES (?, ?, ?, ?, ?, ?)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Unit_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Unit_Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Unit_Race" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Unit_Race" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Unit_Speed" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Unit_Speed" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Loot" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Loot" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="Funct" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Funct" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="Type" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT Unit_id, Unit_Name, Unit_Race, Unit_Speed, Loot, Funct, Type FROM dbo.units</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [Travian].[dbo].[units] SET [Unit_Name] = ?, [Unit_Race] = ?, [Unit_Speed] = ?, [Loot] = ?, [Funct] = ?, [Type] = ? WHERE (([Unit_id] = ?) AND ([Unit_Name] = ?) AND ([Unit_Race] = ?) AND ([Unit_Speed] = ?) AND ([Loot] = ?) AND ([Funct] = ?) AND ([Type] = ?))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Unit_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Unit_Name" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Unit_Race" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Unit_Race" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Unit_Speed" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Unit_Speed" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Loot" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Loot" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="Funct" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Funct" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="Type" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Unit_id" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Unit_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Original_Unit_Name" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Unit_Name" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="Original_Unit_Race" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="Unit_Race" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Unit_Speed" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Unit_Speed" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="Original_Loot" Precision="0" ProviderType="Integer" Scale="0" Size="0" SourceColumn="Loot" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="Original_Funct" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Funct" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiStringFixedLength" Direction="Input" ParameterName="Original_Type" Precision="0" ProviderType="Char" Scale="0" Size="0" SourceColumn="Type" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="Unit_id" DataSetColumn="Unit_id" />
              <Mapping SourceColumn="Unit_Name" DataSetColumn="Unit_Name" />
              <Mapping SourceColumn="Unit_Race" DataSetColumn="Unit_Race" />
              <Mapping SourceColumn="Unit_Speed" DataSetColumn="Unit_Speed" />
              <Mapping SourceColumn="Loot" DataSetColumn="Loot" />
              <Mapping SourceColumn="Funct" DataSetColumn="Funct" />
              <Mapping SourceColumn="Type" DataSetColumn="Type" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSet3" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="True" msprop:Generator_DataSetName="DataSet3" msprop:Generator_UserDSName="DataSet3">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="units" msprop:Generator_TableClassName="unitsDataTable" msprop:Generator_TableVarName="tableunits" msprop:Generator_TablePropName="units" msprop:Generator_RowDeletingName="unitsRowDeleting" msprop:Generator_UserTableName="units" msprop:Generator_RowChangingName="unitsRowChanging" msprop:Generator_RowEvHandlerName="unitsRowChangeEventHandler" msprop:Generator_RowDeletedName="unitsRowDeleted" msprop:Generator_RowEvArgName="unitsRowChangeEvent" msprop:Generator_RowChangedName="unitsRowChanged" msprop:Generator_RowClassName="unitsRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Unit_id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnUnit_id" msprop:Generator_ColumnPropNameInRow="Unit_id" msprop:Generator_ColumnPropNameInTable="Unit_idColumn" msprop:Generator_UserColumnName="Unit_id" type="xs:int" />
              <xs:element name="Unit_Name" msprop:Generator_ColumnVarNameInTable="columnUnit_Name" msprop:Generator_ColumnPropNameInRow="Unit_Name" msprop:Generator_ColumnPropNameInTable="Unit_NameColumn" msprop:Generator_UserColumnName="Unit_Name">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="20" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Unit_Race" msprop:Generator_ColumnVarNameInTable="columnUnit_Race" msprop:Generator_ColumnPropNameInRow="Unit_Race" msprop:Generator_ColumnPropNameInTable="Unit_RaceColumn" msprop:Generator_UserColumnName="Unit_Race">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="11" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Unit_Speed" msprop:Generator_ColumnVarNameInTable="columnUnit_Speed" msprop:Generator_ColumnPropNameInRow="Unit_Speed" msprop:Generator_ColumnPropNameInTable="Unit_SpeedColumn" msprop:Generator_UserColumnName="Unit_Speed" type="xs:int" />
              <xs:element name="Loot" msprop:Generator_ColumnVarNameInTable="columnLoot" msprop:Generator_ColumnPropNameInRow="Loot" msprop:Generator_ColumnPropNameInTable="LootColumn" msprop:Generator_UserColumnName="Loot" type="xs:int" />
              <xs:element name="Funct" msprop:Generator_ColumnVarNameInTable="columnFunct" msprop:Generator_ColumnPropNameInRow="Funct" msprop:Generator_ColumnPropNameInTable="FunctColumn" msprop:Generator_UserColumnName="Funct">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Type" msprop:Generator_ColumnVarNameInTable="columnType" msprop:Generator_ColumnPropNameInRow="Type" msprop:Generator_ColumnPropNameInTable="TypeColumn" msprop:Generator_UserColumnName="Type">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="1" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:units" />
      <xs:field xpath="mstns:Unit_id" />
    </xs:unique>
  </xs:element>
</xs:schema>